/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package seso;

import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 *
 * @author Administrator
 */
@Entity
@Table(name = "M3ShOrderStyle", catalog = "MIS", schema = "dbo")
@NamedQueries({
    @NamedQuery(name = "M3ShOrderStyle.findAll", query = "SELECT m FROM M3ShOrderStyle m"),
    @NamedQuery(name = "M3ShOrderStyle.findByCoNo", query = "SELECT m FROM M3ShOrderStyle m WHERE m.coNo = :coNo"),
    @NamedQuery(name = "M3ShOrderStyle.findByOrderNo", query = "SELECT m FROM M3ShOrderStyle m WHERE m.m3ShOrderStylePK.orderNo = :orderNo"),
    @NamedQuery(name = "M3ShOrderStyle.findByOrderLine", query = "SELECT m FROM M3ShOrderStyle m WHERE m.m3ShOrderStylePK.orderLine = :orderLine"),
    @NamedQuery(name = "M3ShOrderStyle.findByFacility", query = "SELECT m FROM M3ShOrderStyle m WHERE m.facility = :facility"),
    @NamedQuery(name = "M3ShOrderStyle.findByItemNo", query = "SELECT m FROM M3ShOrderStyle m WHERE m.itemNo = :itemNo"),
    @NamedQuery(name = "M3ShOrderStyle.findBySeason", query = "SELECT m FROM M3ShOrderStyle m WHERE m.season = :season"),
    @NamedQuery(name = "M3ShOrderStyle.findByLabel", query = "SELECT m FROM M3ShOrderStyle m WHERE m.label = :label"),
    @NamedQuery(name = "M3ShOrderStyle.findByQuality", query = "SELECT m FROM M3ShOrderStyle m WHERE m.quality = :quality"),
    @NamedQuery(name = "M3ShOrderStyle.findByStyle", query = "SELECT m FROM M3ShOrderStyle m WHERE m.style = :style"),
    @NamedQuery(name = "M3ShOrderStyle.findByColor", query = "SELECT m FROM M3ShOrderStyle m WHERE m.color = :color"),
    @NamedQuery(name = "M3ShOrderStyle.findBySize1", query = "SELECT m FROM M3ShOrderStyle m WHERE m.size1 = :size1"),
    @NamedQuery(name = "M3ShOrderStyle.findBySize2", query = "SELECT m FROM M3ShOrderStyle m WHERE m.size2 = :size2"),
    @NamedQuery(name = "M3ShOrderStyle.findBySize3", query = "SELECT m FROM M3ShOrderStyle m WHERE m.size3 = :size3"),
    @NamedQuery(name = "M3ShOrderStyle.findBySize4", query = "SELECT m FROM M3ShOrderStyle m WHERE m.size4 = :size4"),
    @NamedQuery(name = "M3ShOrderStyle.findBySize5", query = "SELECT m FROM M3ShOrderStyle m WHERE m.size5 = :size5"),
    @NamedQuery(name = "M3ShOrderStyle.findBySize6", query = "SELECT m FROM M3ShOrderStyle m WHERE m.size6 = :size6"),
    @NamedQuery(name = "M3ShOrderStyle.findBySize7", query = "SELECT m FROM M3ShOrderStyle m WHERE m.size7 = :size7"),
    @NamedQuery(name = "M3ShOrderStyle.findBySize8", query = "SELECT m FROM M3ShOrderStyle m WHERE m.size8 = :size8"),
    @NamedQuery(name = "M3ShOrderStyle.findBySize9", query = "SELECT m FROM M3ShOrderStyle m WHERE m.size9 = :size9"),
    @NamedQuery(name = "M3ShOrderStyle.findBySize10", query = "SELECT m FROM M3ShOrderStyle m WHERE m.size10 = :size10"),
    @NamedQuery(name = "M3ShOrderStyle.findByQuantity1", query = "SELECT m FROM M3ShOrderStyle m WHERE m.quantity1 = :quantity1"),
    @NamedQuery(name = "M3ShOrderStyle.findByQuantity2", query = "SELECT m FROM M3ShOrderStyle m WHERE m.quantity2 = :quantity2"),
    @NamedQuery(name = "M3ShOrderStyle.findByQuantity3", query = "SELECT m FROM M3ShOrderStyle m WHERE m.quantity3 = :quantity3"),
    @NamedQuery(name = "M3ShOrderStyle.findByQuantity4", query = "SELECT m FROM M3ShOrderStyle m WHERE m.quantity4 = :quantity4"),
    @NamedQuery(name = "M3ShOrderStyle.findByQuantity5", query = "SELECT m FROM M3ShOrderStyle m WHERE m.quantity5 = :quantity5"),
    @NamedQuery(name = "M3ShOrderStyle.findByQuantity6", query = "SELECT m FROM M3ShOrderStyle m WHERE m.quantity6 = :quantity6"),
    @NamedQuery(name = "M3ShOrderStyle.findByQuantity7", query = "SELECT m FROM M3ShOrderStyle m WHERE m.quantity7 = :quantity7"),
    @NamedQuery(name = "M3ShOrderStyle.findByQuantity8", query = "SELECT m FROM M3ShOrderStyle m WHERE m.quantity8 = :quantity8"),
    @NamedQuery(name = "M3ShOrderStyle.findByQuantity9", query = "SELECT m FROM M3ShOrderStyle m WHERE m.quantity9 = :quantity9"),
    @NamedQuery(name = "M3ShOrderStyle.findByQuantity10", query = "SELECT m FROM M3ShOrderStyle m WHERE m.quantity10 = :quantity10"),
    @NamedQuery(name = "M3ShOrderStyle.findByStatus", query = "SELECT m FROM M3ShOrderStyle m WHERE m.status = :status")})
public class M3ShOrderStyle implements Serializable {
    @Transient
    private PropertyChangeSupport changeSupport = new PropertyChangeSupport(this);
    private static final long serialVersionUID = 1L;
    @EmbeddedId
    protected M3ShOrderStylePK m3ShOrderStylePK;
    @Basic(optional = false)
    @Column(name = "CoNo")
    private String coNo;
    @Basic(optional = false)
    @Column(name = "Facility")
    private String facility;
    @Basic(optional = false)
    @Column(name = "ItemNo")
    private String itemNo;
    @Basic(optional = false)
    @Column(name = "Season")
    private String season;
    @Basic(optional = false)
    @Column(name = "Label")
    private String label;
    @Column(name = "Quality")
    private String quality;
    @Column(name = "Style")
    private String style;
    @Column(name = "Color")
    private String color;
    @Column(name = "Size1")
    private String size1;
    @Column(name = "Size2")
    private String size2;
    @Column(name = "Size3")
    private String size3;
    @Column(name = "Size4")
    private String size4;
    @Column(name = "Size5")
    private String size5;
    @Column(name = "Size6")
    private String size6;
    @Column(name = "Size7")
    private String size7;
    @Column(name = "Size8")
    private String size8;
    @Column(name = "Size9")
    private String size9;
    @Column(name = "Size10")
    private String size10;
    @Column(name = "Quantity1")
    private Integer quantity1;
    @Column(name = "Quantity2")
    private Integer quantity2;
    @Column(name = "Quantity3")
    private Integer quantity3;
    @Column(name = "Quantity4")
    private Integer quantity4;
    @Column(name = "Quantity5")
    private Integer quantity5;
    @Column(name = "Quantity6")
    private Integer quantity6;
    @Column(name = "Quantity7")
    private Integer quantity7;
    @Column(name = "Quantity8")
    private Integer quantity8;
    @Column(name = "Quantity9")
    private Integer quantity9;
    @Column(name = "Quantity10")
    private Integer quantity10;
    @Basic(optional = false)
    @Column(name = "Status")
    private char status;

    public M3ShOrderStyle() {
    }

    public M3ShOrderStyle(M3ShOrderStylePK m3ShOrderStylePK) {
        this.m3ShOrderStylePK = m3ShOrderStylePK;
    }

    public M3ShOrderStyle(M3ShOrderStylePK m3ShOrderStylePK, String coNo, String facility, String itemNo, String season, String label, char status) {
        this.m3ShOrderStylePK = m3ShOrderStylePK;
        this.coNo = coNo;
        this.facility = facility;
        this.itemNo = itemNo;
        this.season = season;
        this.label = label;
        this.status = status;
    }

    public M3ShOrderStyle(int orderNo, int orderLine) {
        this.m3ShOrderStylePK = new M3ShOrderStylePK(orderNo, orderLine);
    }

    public M3ShOrderStylePK getM3ShOrderStylePK() {
        return m3ShOrderStylePK;
    }

    public void setM3ShOrderStylePK(M3ShOrderStylePK m3ShOrderStylePK) {
        this.m3ShOrderStylePK = m3ShOrderStylePK;
    }

    public String getCoNo() {
        return coNo;
    }

    public void setCoNo(String coNo) {
        String oldCoNo = this.coNo;
        this.coNo = coNo;
        changeSupport.firePropertyChange("coNo", oldCoNo, coNo);
    }

    public String getFacility() {
        return facility;
    }

    public void setFacility(String facility) {
        String oldFacility = this.facility;
        this.facility = facility;
        changeSupport.firePropertyChange("facility", oldFacility, facility);
    }

    public String getItemNo() {
        return itemNo;
    }

    public void setItemNo(String itemNo) {
        String oldItemNo = this.itemNo;
        this.itemNo = itemNo;
        changeSupport.firePropertyChange("itemNo", oldItemNo, itemNo);
    }

    public String getSeason() {
        return season;
    }

    public void setSeason(String season) {
        String oldSeason = this.season;
        this.season = season;
        changeSupport.firePropertyChange("season", oldSeason, season);
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        String oldLabel = this.label;
        this.label = label;
        changeSupport.firePropertyChange("label", oldLabel, label);
    }

    public String getQuality() {
        return quality;
    }

    public void setQuality(String quality) {
        String oldQuality = this.quality;
        this.quality = quality;
        changeSupport.firePropertyChange("quality", oldQuality, quality);
    }

    public String getStyle() {
        return style;
    }

    public void setStyle(String style) {
        String oldStyle = this.style;
        this.style = style;
        changeSupport.firePropertyChange("style", oldStyle, style);
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        String oldColor = this.color;
        this.color = color;
        changeSupport.firePropertyChange("color", oldColor, color);
    }

    public String getSize1() {
        return size1;
    }

    public void setSize1(String size1) {
        String oldSize1 = this.size1;
        this.size1 = size1;
        changeSupport.firePropertyChange("size1", oldSize1, size1);
    }

    public String getSize2() {
        return size2;
    }

    public void setSize2(String size2) {
        String oldSize2 = this.size2;
        this.size2 = size2;
        changeSupport.firePropertyChange("size2", oldSize2, size2);
    }

    public String getSize3() {
        return size3;
    }

    public void setSize3(String size3) {
        String oldSize3 = this.size3;
        this.size3 = size3;
        changeSupport.firePropertyChange("size3", oldSize3, size3);
    }

    public String getSize4() {
        return size4;
    }

    public void setSize4(String size4) {
        String oldSize4 = this.size4;
        this.size4 = size4;
        changeSupport.firePropertyChange("size4", oldSize4, size4);
    }

    public String getSize5() {
        return size5;
    }

    public void setSize5(String size5) {
        String oldSize5 = this.size5;
        this.size5 = size5;
        changeSupport.firePropertyChange("size5", oldSize5, size5);
    }

    public String getSize6() {
        return size6;
    }

    public void setSize6(String size6) {
        String oldSize6 = this.size6;
        this.size6 = size6;
        changeSupport.firePropertyChange("size6", oldSize6, size6);
    }

    public String getSize7() {
        return size7;
    }

    public void setSize7(String size7) {
        String oldSize7 = this.size7;
        this.size7 = size7;
        changeSupport.firePropertyChange("size7", oldSize7, size7);
    }

    public String getSize8() {
        return size8;
    }

    public void setSize8(String size8) {
        String oldSize8 = this.size8;
        this.size8 = size8;
        changeSupport.firePropertyChange("size8", oldSize8, size8);
    }

    public String getSize9() {
        return size9;
    }

    public void setSize9(String size9) {
        String oldSize9 = this.size9;
        this.size9 = size9;
        changeSupport.firePropertyChange("size9", oldSize9, size9);
    }

    public String getSize10() {
        return size10;
    }

    public void setSize10(String size10) {
        String oldSize10 = this.size10;
        this.size10 = size10;
        changeSupport.firePropertyChange("size10", oldSize10, size10);
    }

    public Integer getQuantity1() {
        return quantity1;
    }

    public void setQuantity1(Integer quantity1) {
        Integer oldQuantity1 = this.quantity1;
        this.quantity1 = quantity1;
        changeSupport.firePropertyChange("quantity1", oldQuantity1, quantity1);
    }

    public Integer getQuantity2() {
        return quantity2;
    }

    public void setQuantity2(Integer quantity2) {
        Integer oldQuantity2 = this.quantity2;
        this.quantity2 = quantity2;
        changeSupport.firePropertyChange("quantity2", oldQuantity2, quantity2);
    }

    public Integer getQuantity3() {
        return quantity3;
    }

    public void setQuantity3(Integer quantity3) {
        Integer oldQuantity3 = this.quantity3;
        this.quantity3 = quantity3;
        changeSupport.firePropertyChange("quantity3", oldQuantity3, quantity3);
    }

    public Integer getQuantity4() {
        return quantity4;
    }

    public void setQuantity4(Integer quantity4) {
        Integer oldQuantity4 = this.quantity4;
        this.quantity4 = quantity4;
        changeSupport.firePropertyChange("quantity4", oldQuantity4, quantity4);
    }

    public Integer getQuantity5() {
        return quantity5;
    }

    public void setQuantity5(Integer quantity5) {
        Integer oldQuantity5 = this.quantity5;
        this.quantity5 = quantity5;
        changeSupport.firePropertyChange("quantity5", oldQuantity5, quantity5);
    }

    public Integer getQuantity6() {
        return quantity6;
    }

    public void setQuantity6(Integer quantity6) {
        Integer oldQuantity6 = this.quantity6;
        this.quantity6 = quantity6;
        changeSupport.firePropertyChange("quantity6", oldQuantity6, quantity6);
    }

    public Integer getQuantity7() {
        return quantity7;
    }

    public void setQuantity7(Integer quantity7) {
        Integer oldQuantity7 = this.quantity7;
        this.quantity7 = quantity7;
        changeSupport.firePropertyChange("quantity7", oldQuantity7, quantity7);
    }

    public Integer getQuantity8() {
        return quantity8;
    }

    public void setQuantity8(Integer quantity8) {
        Integer oldQuantity8 = this.quantity8;
        this.quantity8 = quantity8;
        changeSupport.firePropertyChange("quantity8", oldQuantity8, quantity8);
    }

    public Integer getQuantity9() {
        return quantity9;
    }

    public void setQuantity9(Integer quantity9) {
        Integer oldQuantity9 = this.quantity9;
        this.quantity9 = quantity9;
        changeSupport.firePropertyChange("quantity9", oldQuantity9, quantity9);
    }

    public Integer getQuantity10() {
        return quantity10;
    }

    public void setQuantity10(Integer quantity10) {
        Integer oldQuantity10 = this.quantity10;
        this.quantity10 = quantity10;
        changeSupport.firePropertyChange("quantity10", oldQuantity10, quantity10);
    }

    public char getStatus() {
        return status;
    }

    public void setStatus(char status) {
        char oldStatus = this.status;
        this.status = status;
        changeSupport.firePropertyChange("status", oldStatus, status);
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (m3ShOrderStylePK != null ? m3ShOrderStylePK.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof M3ShOrderStyle)) {
            return false;
        }
        M3ShOrderStyle other = (M3ShOrderStyle) object;
        if ((this.m3ShOrderStylePK == null && other.m3ShOrderStylePK != null) || (this.m3ShOrderStylePK != null && !this.m3ShOrderStylePK.equals(other.m3ShOrderStylePK))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "seso.M3ShOrderStyle[ m3ShOrderStylePK=" + m3ShOrderStylePK + " ]";
    }

    public void addPropertyChangeListener(PropertyChangeListener listener) {
        changeSupport.addPropertyChangeListener(listener);
    }

    public void removePropertyChangeListener(PropertyChangeListener listener) {
        changeSupport.removePropertyChangeListener(listener);
    }
    
}
